package com.itheima.dao;

import com.itheima.pojo.TFile;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface TFileMapper  extends Mapper<TFile> {

    @Select("SELECT *  FROM `t_file` where uid = #{array};")
    @Results({
            @Result(property = "fileOldName", column = "file_old_name"),
            @Result(property = "picName", column = "pic_name"),
            @Result(property = "picExpandedName", column = "pic_expanded_name"),
            @Result(property = "picUrl", column = "pic_url"),
            @Result(property = "fileSortUid", column = "file_sort_uid"),
            @Result(property = "adminUid", column = "admin_uid"),
            @Result(property = "userUid", column = "user_uid"),
            @Result(property = "createTime", column = "create_time"),
            @Result(property = "updateTime", column = "update_time"),
            @Result(property = "qiNiuUrl", column = "qi_niu_url"),
    })
    List<TFile> selectByTFileUid(String array);
}
